Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / Application Messages


GXParsePageRange

QuickDraw GX sends the GXParsePageRange message when a user selects a range of pages for printing. You can override the GXParsePageRange message to validate a page range. Your override of the GXParsePageRange message must match the following formal declaration:

OSErr MyParsePageRange (StringPtr fromString, StringPtr toString,
                        gxParsePageRangeResult *result);
fromString
A pointer to a string representation of the from-page.
toString
A pointer to a string representation of the to-page.
result
On return, a value that specifies the result code for the range parsing. The constants for this value are given in the section "Parse Range Results" on page 4-38.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX sends the GXParsePageRange message to validate that a page range entered by the user is appropriate for the print job.

SPECIAL CONSIDERATIONS
You rarely send the GXParsePageRange message yourself.

You must always forward the GXParsePageRange message to other message handlers.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help